angular.module('app').controller('swarmDetailCtrl', ['$rootScope', '$scope','$state','httpLoad','$stateParams','LANGUAGE',function($rootScope, $scope,$state,httpLoad,$stateParams,LANGUAGE) {
    $rootScope.moduleTitle = '资源管理 > 集群';
    $scope.title = "集群详情";
    $rootScope.link = '/statics/css/common.css';//引入页面样式
    var sh;
    $scope.swarmInfo = $stateParams.id;
    (function(){
        $scope.showDetail = $scope.isActive = true;
        $scope.isMore = true;
        $scope.isOne = true;
        if($stateParams.id.clusterHostArray.length>1){
            $scope.isMore = false;
        }
    })();
    $scope.goBack = function(){
            $state.go('app.resources.swarm');
    };
}]);